<html>
<body>
	<a href="add.php">add</a><br/><br/>
	<table>
		<tr>
			<td>id</td>
			<td>title</td>
			<td>opration</td>
		</tr>
		<?php
		$conn = mysql_connect("127.0.0.1:3307","root","");
		if ($conn) {
			mysql_select_db("hellophp", $conn);
			$result = mysql_query("select * from article");

			while($row = mysql_fetch_array($result)){
		?>
		<tr>
			<td><?php echo $row['id'] ?></td>
			<td><a href='show.php?id=<?php echo $row['id'] ?>'><?php echo $row['title'] ?></a></td>
			<td><a href='del_do.php?id=<?php echo $row['id'] ?>'>delete</a></td>
		</tr>
		<?php
			} 
			mysql_close($conn);
		}
		?>
	</table>
</body>
</html>